package com.lwj.liwanjia.view.activity.work.dian_jia;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.lwj.liwanjia.R;
import com.lwj.liwanjia.base.BaseActivity;

/**
 * Created by 001 on 2017/9/19.
 */

public class DianJiaRegisterActivity extends BaseActivity implements View.OnClickListener {

    private TextView tv_back;
    private TextView tv_title;
    private Button bt_shenQing;//申请按钮

    @Override
    protected void initView() {

        tv_back = (TextView) findViewById(R.id.tv_left);
        tv_title = (TextView) findViewById(R.id.tv_title);
        bt_shenQing = (Button) findViewById(R.id.bt_shenQing);

        tv_back.setVisibility(View.VISIBLE);
        tv_title.setVisibility(View.VISIBLE);
        tv_title.setText("注册");

        tv_back.setOnClickListener(this);
        bt_shenQing.setOnClickListener(this);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_dian_jia_home;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            //返回
            case R.id.tv_left:
                finish();
                break;
            //申请
            case R.id.bt_shenQing:
                Toast.makeText(this, "暂未开放", Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
